package priv.abadstring.study.rocketmq.spring;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * RocketMQApplication
 *
 * @author aBadString
 * @date 2021-08-04 19:44:05
 */
@SpringBootApplication
public class RocketMQApplication {
    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(RocketMQApplication.class, args);
        Producer producer = context.getBean(Producer.class);
        producer.send("hello", "这是一条消息");
    }
}
